workspace "beanstalkd"
	configurations { "Debug", "Release" }
	platforms { "Win32", "Win64", "Linux" }
	location "build"
	
filter "platforms:Win32"
    system "windows"
    architecture "x32"
	defines { "_WIN32","WIN32","_WINDOWS","NOMINMAX"}
	
filter "platforms:Win64"
    system "windows"
    architecture "x64"	
	defines { "_WIN32","WIN32","_WINDOWS","NOMINMAX"}
	
filter "platforms:Linux" 
    system "linux"
    architecture "x64"	
	defines { "LINUX", "__linux__" ,"__POSIX__"}	

filter "configurations:Debug"
	defines { "DEBUG" , "_DEBUG"}
	flags { "Symbols" }
	optimize "Debug"
	
filter "configurations:Release"
	defines { "NDEBUG" }
	optimize "Speed"

project "beanstalkd"
	kind "ConsoleApp"	
	language "C"
	
	includedirs{
		"./",
	}
	
	files{
		"*.h",
		"*.c",
	}
	
	removefiles{
		"testheap.c",
		"testjobs.c",
		"testms.c",
		"testserv.c",
		"testutil.c",
		"sunos.c",
		"freebsd.c",
		"darwin.c",
	}

filter "platforms:Win*"
	includedirs{
		"win32/",
	}
	files{
		"win32/*.h",
		"win32/*.c",
	}
	removefiles{
		"linux.c",
	}
	
	
	
include "client"

	